#include <iostream>
using namespace std; 
#include <vector>
#include <stack>

vector<vector<int>> MonotonicStack(vector<int>& arr);


vector<vector<int>> MonotonicStack(vector<int>& arr)
{
  int N = static_cast<int>(arr.size());
  vector<vector<int>> ans()
}
